﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Login/AdminMaster.master" AutoEventWireup="true" CodeFile="Picture.aspx.cs" Inherits="Tailor_Measurement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h1>Picture</h1>
<table>
    <tr>
        
        <td>
            Title:
        </td>
        <td>
            <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            <asp:HiddenField ID="hfID" runat="server" Value=""/>
        </td>
        <td>
            Picture:
        </td>
        <td>
            <asp:TextBox ID="txtPicture" runat="server" Width="200px"></asp:TextBox>
        </td>
        <td>
            Product:
        </td>
        <td>
            <asp:DropDownList ID="ddlProduct" runat="server">
            </asp:DropDownList>
        </td>
        <td>
            <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
        </td>
    </tr>
</table>
<asp:GridView ID="gvItems" runat="server" AutoGenerateColumns="false" CssClass="gridCss">
            <Columns>
                <asp:TemplateField HeaderText="Edit">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbSelect" runat="server" CommandArgument='<%#Eval("ID") %>' OnClick="lbSelect_Click">
                            Edit
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Product">
                    <ItemTemplate>
                        <asp:Label ID="lblProdut" Font-Size="20px"  runat="server" Text='<%#Eval("ProductName") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Title">
                    <ItemTemplate>
                        <asp:Label ID="lblJournalMasterID" Font-Size="20px"  runat="server" Text='<%#Eval("Name") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Picture">
                    <ItemTemplate>
                        <asp:Label ID="lblPicture" Font-Size="20px"  runat="server" Text='<%#Eval("PictureDetails") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbDelete" runat="server" CommandArgument='<%#Eval("ID") %>' OnClick="lbDelete_Click">
                            Delete
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        </div>
</asp:Content>

